package com.lpc.utilclasstest;

import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        initView();
    }

    private void initView() {

    }

    public void click1(View view) {

        DisplayUtil.printDisplayMetrics(this);
        Log.e("lipc0113", "手机型号: " + Build.MODEL);
        Log.e("lipc0113", "SDK版本: " + Build.VERSION.SDK);
        Log.e("lipc0113", "系统版本: " + Build.VERSION.RELEASE);
        Log.e("lipc0113", "版本号: " + Build.DISPLAY);
    }
}
